package com.example.demo.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: fzykd
 * Date: 2022-11-11
 * Time: 16:29
 */

@Data
@ConfigurationProperties(prefix = "spring.datasource")
@Component
public class Sql {
    public String url;
    public String username;
    public String password;
    //driver-class-name配置文件中这种写法 变量采用小驼峰
    public String  driverClassName;

}
